from pydantic import Field

from app.schemas.base import BaseModel


class AddJobDTO(BaseModel):
    func: str = Field(..., description="任务名称")
    trigger: str = Field(..., description="任务描述")
    args: str = Field(..., description="任务类型")
    kwargs: str = Field(..., description="任务状态")
    id: str = Field(..., description="任务cron表达式")
    name: str = Field(..., description="任务执行命令")